package org.n.shop.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.n.shop.domain.entity.Address;

import java.util.List;

@Mapper
public interface AddressMapper {
    List<Address> all(int userId);

    int add(Address address);

    int update(Address address);

    int del(int id);

    Integer setDefault(@Param("userId") int userId, @Param("id") int id);
}
